<%--
  Created by IntelliJ IDEA.
  User: 86181
  Date: 2021/7/5
  Time: 17:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"  isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>后台页面</title>
</head>
<body>
<table>
    <tr>
        <th>学生id</th>
        <th>学生姓名</th>
        <th>学生年龄</th>
        <th>学生性别</th>
        <th>学生电话</th>
        <th>学生邮箱</th>
        <th>学生地址</th>
    </tr>
<c:forEach items="${list}" var="student">
    <tr>
        <td>${student.id}</td>
        <td>${student.sname}</td>
        <td>${student.age}</td>
        <td>${student.sex}</td>
        <td>${student.tel}</td>
        <td>${student.email}</td>
        <td>${student.adress}</td>
        <td>
            <a href="/deleteById?id=${student.id}">删除</a>
            <a href="/findById?id=${student.id}">修改</a>
        </td>
    </tr>
</c:forEach>
</table>
<form action="/insertStudent" method="post">
    学生姓名:<input type="text" name="sname"><br>
    学生年龄:<input type="text" name="age"><br>
    学生性别:<input type="text" name="sex"><br>
    学生电话:<input type="text" name="tel"><br>
    学生邮箱:<input type="text" name="email"><br>
    学生地址:<input type="text" name="adress"><br>
<input type="submit">
</form>
</body>
</html>
